x86/mca: simplify mce action, and some update of mem err handler for
authorLiu, Jinsong <jinsong.liu@intel.com>
Mon, 16 May 2011 12:12:03 +0000 (13:12 +0100)
committerLiu, Jinsong <jinsong.liu@intel.com>
Mon, 16 May 2011 12:12:03 +0000 (13:12 +0100)
commitc3249bec9b0b6be84ed1dcd066e81fc22354ace5
treeb6962ae1a84d017892278a491a093236d33ab2ea
parent29d533f5f5e9e6d33c28e31408aeb566fa37f1c2
x86/mca: simplify mce action, and some update of mem err handler for
future SRAR extension

This patch simplify mce_action(). Basically the 2 set of mce status
flags MCA_... and MCER_... are highly functional similar. This patch
remove the redundant middle-level flag MCA_..., and its related data
structure and function, so that mce_action() logic is more clean and
simpler.  This patch also update mem err
handler. intel_memerr_dhandler() will be commonly used by SRAO and
SRAR, so for the extension of future SRAR case, this patch remove the
default fail flag from intel_memerr_dhandler() outside to SRAO/SRAR
level, since only SRAO/SRAR handler itself has the knowledge of how to
handle the failure when mem err handler fail.

Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
xen/arch/x86/cpu/mcheck/mce_intel.c
xen/arch/x86/cpu/mcheck/x86_mca.h